package com.tangruitao.bean;

import lombok.Data;

import javax.validation.constraints.NotBlank;

@Data
public class Users {

  private Integer uid;
  @NotBlank(message = "不能为空")
  private String uname;
  @NotBlank(message = "不能为空")
  private String upwd;
  private Integer role;


  public Integer getUid() {
    return uid;
  }

  public void setUid(Integer uid) {
    this.uid = uid;
  }


  public String getUname() {
    return uname;
  }

  public void setUname(String uname) {
    this.uname = uname;
  }


  public String getUpwd() {
    return upwd;
  }

  public void setUpwd(String upwd) {
    this.upwd = upwd;
  }


  public Integer getRole() {
    return role;
  }

  public void setRole(Integer role) {
    this.role = role;
  }

}
